package Test;


import com.config.MyBatisConfig;
import com.config.SpringConfig;
import com.service.RecordService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes={SpringConfig.class, MyBatisConfig.class})
public class RecordServiceTest {

    @Autowired
    private RecordService recordService;

    @Test
    public void findRecordNumTest(){
        System.out.println(recordService.recordNum(1,10));
    }

    @Test
    public void findByIsbnTest(){
        System.out.println(recordService.findByIsbn("3337123312796"));
    }
}
